package com.huayal.mall.product;

import com.google.errorprone.annotations.CompatibleWith;
import com.huayal.mall.product.conf.MyCacheConfig;
import com.huayal.mall.product.conf.RedissonConfig;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;

//放开springCache的使用
@EnableCaching
@EnableFeignClients(basePackages = "com.huayal.mall.product.fegin")
@EnableDiscoveryClient
@SpringBootApplication
//导入RedissonConfig和MyCacheConfig类到自动装配.
@Import({RedissonConfig.class, MyCacheConfig.class})
//指定接口对应路径
@MapperScan("com.huayal.mall.product.dao")
@ComponentScan(basePackages = "com.huayal")
public class MallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallProductApplication.class, args);
    }

}
